// let _env = process.env.NODE_ENV;
let _env = 'development';
// let _env = 'production';
// let _env = 'testPacketCapture'
let apiEnv = uni.getStorageSync('apiEnv');
if (!apiEnv) {
	uni.setStorageSync('apiEnv', _env)
} else {
	_env = apiEnv
}
const oneAppBaseURL = {
	// 张开全本地环境
	// development: 'http://10.121.113.134:9090',
	// development: 'http://10.121.114.196:8083/api',
	// development: 'http://10.207.15.118:8082/maximobiz/',

	// #ifdef H5
	// development: 'http://localhost:8080/api',
	testPacketCapture: 'https://one-app-press.chintanneng.com',
	// development: 'https://leadtest.chintanneng.com',
	development: 'http://10.207.15.118:8082/maximobiz/',
	production: 'https://cloudcheck.chintanneng.com:8443',
	// #endif
	// #ifdef APP-PLUS
	testPacketCapture: 'https://one-app-press.chintanneng.com',
	development: 'https://leadtest.chintanneng.com',
	production: 'https://cloudcheck.chintanneng.com:8443'
	// #endif

}

const serviceBaseURL = {
	testPacketCapture: 'https://itsmtest.chintanneng.com',
	development: 'http://10.207.15.118:8082/maximobiz/',
	production: 'https://itsm.chintanneng.com'
}

const qmsServiceBaseURL = {
	testPacketCapture: 'https://cluster-2-dev.mobiapp.cloud/16085653/wafigw',
	development: 'https://cluster-2-dev.mobiapp.cloud/16085653/wafigw',
	production: 'https://qms.chintanneng.com'
}



export const env = {
	hasAi: true,
	env: _env,
	baseURL: oneAppBaseURL[_env],
	brand: 'anneng',
	themeColor: '#237AE4',
	serviceDesk: {
		baseURL: serviceBaseURL[_env],
		qmsBaseURL: qmsServiceBaseURL[_env]
	},
	oneAppBaseURL,
	serviceBaseURL,
	qmsServiceBaseURL,
	hasChangEnv: true,
	smartbi: {
		resid: 'I8a4f8fa0018697779777e3770186a64e9a16541f'
	}
}